package com.xzy.controller.f;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 说明：拦截器
 *
 * @author xzy
 * @date 2021/11/14 22:20
 */
@Slf4j
@RestController("controllerF")
@RequestMapping("/test_f")
public class TestController {

    @GetMapping("/a")
    public String testA() {
        if (Math.random() > 0.5) {
            return "success";
        } else {
            throw new IllegalArgumentException();
        }
    }
}
